How can I change the `invalid` message of doctrine?
Posted
by roddik
on Stack Overflow
See other posts from Stack Overflow
or by roddik
Published on 2010-04-02T18:19:12Z
Indexed on
2010/04/02
18:23 UTC
Read the original article
Hit count: 132
Hi. I'm using symfony with doctrine and I make a registration form. Email field is declared unique and if I set it to already existing one, I get the message An object with the same "email" already exist.
. I use the following validator:
$this->validatorSchema['email'] = new sfValidatorEmail(array('required' => true), array('invalid' => 'Does not seem to be a proper email'));
How can I change the "already exists" message? Thanks
© Stack Overflow or respective owner